{include file="public/nheader" /}
<style type="text/css">
    #container {
        min-width: 100px;
        min-height: 300px;
    }
</style>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=2AEBZ-YK23W-XISR6-ROOGV-VOLI7-46FFT"></script>
<div class="layui-fluid layui-bg-white">
    <form action="{:url()}" class="layui-form layui-form-fixed">
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>用户名
            </label>
            <div class="layui-input-block">
                <input type="text" name="name" required="" lay-verify="required" autocomplete="off" class="layui-input"
                    value="{$row.name|default=''}" placeholder="请填写品牌名称">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>手机号(账号)
            </label>
            <div class="layui-input-block">
                <input type="text" name="mobile" required="" lay-verify="required" autocomplete="new-password"
                    class="layui-input" value="{$row.mobile|default=''}" placeholder="请填写账号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>所属品牌
            </label>
            <div class="layui-input-block">
                <select name="agentid" lay-filter="agentid">
                    <option value="">请选择所属品牌</option>
                    {foreach $agent as $v}
                    <option value="{$v.id}" {if !empty($row.agentid) && $row.agentid==$v.id}selected{/if}>
                        {$v.nickname}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                <font color="red">* </font>店铺名称
            </label>
            <div class="layui-input-block">
                <input type="text" name="store_name" required="" lay-verify="required" autocomplete="off"
                    class="layui-input" value="{$row.store_name|default=''}" placeholder="店铺名称">
            </div>
            <div style="color:red" class="layui-input-block">
                如高铁吾悦广场店、奥林匹克店
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                登录密码
            </label>
            <div class="layui-input-block">
                <input type="password" name="password" autocomplete='new-password' class="layui-input"
                    placeholder="请登录密码">

            </div>
        </div>
        <div class="layui-footer layui-form-item layui-center ">
            <input type="hidden" value="{$row['id']|default='0'}" name="id" />
            <button class="layui-btn" lay-filter="submitIframe" type="button" lay-submit>提交</button>
            <button class="layui-btn layui-btn-primary" type="button" sa-event="closeDialog">取消</button>
        </div>
    </form>
</div>
{include file="public/nfooter" /}